package {
	
	import flash.display.Sprite;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;

	import com.tweenman.ConstantEase;

	public class TweenManDemo4 extends Sprite {
		
		private var positionEase:ConstantEase;
		
		public function TweenManDemo4 () {
			stage.scaleMode = "noScale";
			stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
			positionEase = new ConstantEase(mc, ConstantEase.ELASTIC, { easeKinetic: 0.2 });
		}

		private function enterFrameHandler (e:Event) {
			positionEase.setProperties({ x:mouseX, y:mouseY });
		}
	}
}